// 提交 mutations是更改Vuex状态的唯一合法方法
// export const modifyAName = (state, name) => { // A组件点击更改餐馆名称为 A餐馆
//     state.resturantName = name // 把方法传递过来的参数，赋值给state中的resturantName
// }
// export const modifyBName = (state, name) => { // B组件点击更改餐馆名称为 B餐馆
//     state.resturantName = name
// }

    
const setSid = (state, value) => { 
    state.sid = value
 }
 //设置用户基本信息
 const setUserInfo = (state, value) => { 
   state.userInfo = value
}
const setIslogin = (state, value) => { 
   state.isLogin = value
}
 export {
    setSid,
    setUserInfo,
    setIslogin
 }